/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.searchbook.keywordsfetch;

import android.util.Xml;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.util.Vector;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

public class XmlParser {
	private Vector<XmlTag> tags = new Vector();

	public XmlParser(String paramString) throws XmlPullParserException,
			IOException {
		XmlPullParser localXmlPullParser = Xml.newPullParser();
		localXmlPullParser.setInput(
				new ByteArrayInputStream(paramString.getBytes()), null);
		Parser(localXmlPullParser);
	}

	private void Parser(XmlPullParser paramXmlPullParser)
    throws IOException, XmlPullParserException
  {
//    String str = null;
//    int i = paramXmlPullParser.getEventType();
//    if (i == 1)
//      label9: return;
//    switch (i)
//    {
//    case 1:
//    case 2:
//    default:
//    case 3:
//    case 4:
//    }
//    while (true)
//    {
//      i = paramXmlPullParser.next();
//      break label9:
//      if (str != null)
//      {
//        XmlTag localXmlTag = new XmlTag();
//        localXmlTag.setTagName(paramXmlPullParser.getName());
//        localXmlTag.setTagValue(str);
//        this.tags.add(localXmlTag);
//      }
//      str = null;
//      continue;
//      str = paramXmlPullParser.getText();
//    }
  }

	public Vector<XmlTag> getTags() {
		return this.tags;
	}
}